package com.deuwise.system.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper=true)
@TableName("sys_keypair")
public class KeyPairDo extends Model<KeyPairDo> implements Serializable {

    /**主键id*/
    @ApiModelProperty("主键id")
    @TableField("id")
    private String id;

    /**标识*/
    @ApiModelProperty("标识")
    @TableField("key")
    private String key;

    /**数据值*/
    @ApiModelProperty("数据值")
    @TableField("value")
    private String value;

    /**备注*/
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
